/**
 * Created by ying on 16-8-25.
 */
var app=angular.module('myApp',["ngRoute"])
app.config(['$routeProvider', function ($routeProvider){
            $routeProvider
                .when('/',{
                    templateUrl:'../html/home.html',
                    controller:'homeCtrl'
                })
                .when('/product_list',{
                    templateUrl:'../html/product_list.html',
                    controller:'Product_listCtrl'
                })
                .when('/cart',{
                    templateUrl:'../html/cart.html',
                    controller:'cartCtrl'
                })
                .when('/pay',{
                    templateUrl:'../html/pay.html',
                    controller:'payCtrl'
                })
                .otherwise({redirectTo:'/'});
        }
    ])